package com.alibaba.algo.apiimpl.user;

import com.alibaba.algo.cooperation.usercomponent.service.user.SysOperateLogService;
import com.alibaba.algo.cooperation.usercomponent.vo.req.SysOperateLogDTO;
import com.alibaba.algo.domain.user.SysOperateLogDomain;
import com.alibaba.algo.entity.user.SysOperateLog;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 类SysOperateLogServiceImpl.java的实现描述：系统操作日志表 serviceimpl
 *
 * @author songwenwei 2021-12-02 14:51:51
*/
@Slf4j
@Service
public class SysOperateLogServiceImpl implements SysOperateLogService {

    @Autowired
    private SysOperateLogDomain sysOperateLogDomain;


    @Override
    public void insert(SysOperateLogDTO sysOperateLogDTO) {
        SysOperateLog sysOperateLog = new SysOperateLog();
        BeanUtils.copyProperties(sysOperateLogDTO,sysOperateLog);
        sysOperateLogDomain.insert(sysOperateLog);
    }
}
